CREATE TABLE [dbo].[THLOGI_FALLI]
(
[CO_USUA] [dbo].[TD_VC_008] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__THLOGI_FA__CO_US__4CA06362] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__THLOGI_FA__FE_US__4D94879B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__THLOGI_FA__CO_US__4E88ABD4] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__THLOGI_FA__FE_US__4F7CD00D] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[THLOGI_FALLI] ADD CONSTRAINT [PK__THLOGI_F__E73828D974CE504D] PRIMARY KEY CLUSTERED  ([CO_USUA]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[THLOGI_FALLI] ADD CONSTRAINT [FK__THLOGI_FA__CO_US__2AF556D4] FOREIGN KEY ([CO_USUA]) REFERENCES [dbo].[TMUSUA] ([CO_USUA])
GO
GRANT SELECT ON  [dbo].[THLOGI_FALLI] TO [public]
GRANT INSERT ON  [dbo].[THLOGI_FALLI] TO [public]
GRANT DELETE ON  [dbo].[THLOGI_FALLI] TO [public]
GRANT UPDATE ON  [dbo].[THLOGI_FALLI] TO [public]
GO
